package cn.panda.edu.service;

import cn.panda.edu.model.Teacher;
import cn.panda.edu.model.TeacherWithBLOBs;
import com.github.pagehelper.PageInfo;

/**  
 * 类描述：  教师Service
 * @author: wyd
 * @date： 2018-01-16 下午2:25:28  
 */
public interface TeacherService {
	/**
	 * 
	* @Title: listTeacherByStuIdAndPage 
	* @Description: 根据学生id分页获取教师id cxf
	* @param studentId
	* @param pageIndex
	* @param pageSize
	* @return  
	* PageInfo<Teacher>
	 */
	PageInfo<Teacher> listTeacherByStuIdAndPage(Integer studentId, Integer pageIndex, Integer pageSize);
	/**
	 * 
	* @Title: deleteByPrimaryKey 
	* @Description: TODO(通过主键删除) 
	* @param @param teacherId
	* @param @return  
	* @return int
	 */
    int deleteByPrimaryKey(Integer teacherId);
    /**
    * @Title: insert 
    * @Description: TODO(插入) 
    * @param @param record
    * @param @return  
    * @return int
     */
    int insert(TeacherWithBLOBs record);

    /**
    * @Title: insertSelective 
    * @Description: TODO(动态插入) 
    * @param @param record
    * @param @return  
    * @return int
     */
    int insertSelective(TeacherWithBLOBs record);

    /**
    * @Title: selectByPrimaryKey 
    * @Description: TODO(通过teacherId 查找) 
    * @param @param teacherId
    * @param @return  
    * @return TeacherWithBLOBs
     */
    TeacherWithBLOBs selectByPrimaryKey(Integer teacherId);

    /**
    * @Title: updateByPrimaryKeySelective 
    * @Description: TODO(动态 更新) 
    * @param @param record
    * @param @return  
    * @return int
     */
    int updateByPrimaryKeySelective(TeacherWithBLOBs record);

    /**
    * @Title: updateByPrimaryKeyWithBLOBs 
    * @Description: TODO(更新) 
    * @param @param record
    * @param @return  
    * @return int
     */
    int updateByPrimaryKeyWithBLOBs(TeacherWithBLOBs record);

    /**
    * @Title: updateByPrimaryKey 
    * @Description: TODO(更新) 
    * @param @param record
    * @param @return  
    * @return int
     */
    int updateByPrimaryKey(Teacher record);

    /**
    * @Title: selectByPageAndSelective 
    * @Description: TODO(分页+模糊+查所有教师) 
    * @param teacherId
    * @param teacherRealname
    * @param pageIndex
    * @param pageSize
    * @return
    * PageInfo<Teacher>
     */
    PageInfo<Teacher> selectByPageAndSelective(Integer teacherId, String teacherRealname, Integer pageIndex, Integer pageSize);

    /**
    * @Title: updatePermissionByPrimaryKey
    * @Description: TODO(修改权限)
    * @param roleId
    * @param teacherId
    * @return
    * int
     */
    int updatePermissionByPrimaryKey(Integer roleId, Integer teacherId);

    /**
     *
    * @Title: manageLogin
    * @Description: TODO(教师，管理员登陆)
    * @param teacher
    * @return
    * Teacher
     */
    Teacher manageLogin(Integer teacherId, String teacherPwd);
	/**
	 *
	* @Title: teacherLogin
	* @Description: 教师登录
	*@param teacherId
	*@param pwd
	*@return
	* Teacher
	 */

	Teacher teacherLogin(Integer teacherId, String pwd);
	
	 /**
	  * 
	 * @Title: teacherPwd 
	 * @Description: 修改密码 
	 *@param teacherId
	 *@param pwd
	 *@return  
	 * int
	  */
	int   teacherModfiyPwd(Integer teacherId, String pwd);
}
